home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- #
- # borrowed from Fedora and modified to work with console-setup
- #
-
- [ -x /usr/bin/hal-set-property ] || exit 0
-
- . /etc/default/console-setup > /dev/null 2>&1 || exit 0
-
- hal_set () {
- if [ -n "$2" ]; then
- /usr/bin/hal-set-property --direct --udi "$UDI" --key input.xkb.$1 --string "$2"
- else
- /usr/bin/hal-set-property --direct --udi "$UDI" --key input.xkb.$1 --remove
- fi
- }
-
- hal_set model $XKBMODEL
- hal_set layout $XKBLAYOUT
- hal_set variant $XKBVARIANT
- hal_set options $XKBOPTIONS
-